package com.lcj.springems.utils;

public class CheckHobbyUtil {
    public static String checkhobby(String hobbies,String hobby){
        if (null!=hobbies)
        {
            for(String s:hobbies.split(",")){
                if(s.equals(hobby))
                    return "checked";
            }
        }
        return "";
    }
}
